<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<link rel="stylesheet" href="style.css">
	</head>
<title>Login</title>
</head>

<body>

<p><b>Feature Name:</b> Login<br><b>Feature URL:</b>&nbsp; /api/user/login.php<br>
<b>Parameters: </b><br>&nbsp;&nbsp;&nbsp;
verbose<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Activates verbose mode, Integer(0-disabled, 1-enabled), Optional (0 by 
default)<br>&nbsp;&nbsp;&nbsp;
username<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- The user's username, string, Optional<br>&nbsp;&nbsp;&nbsp; pass<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- The user's password, string, Optional<br>&nbsp;&nbsp;&nbsp; xml<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Defines if returns xml, Integer(0-disabled, 1-enabled), Optional (0 by 
default)<br>&nbsp;&nbsp;&nbsp;
<br><b>Examples:</b><br>
/api/user/login.php?&amp;username=teste&amp;pass=teste<br>
/api/user/login.php?&amp;username=teste&amp;pass=teste&amp;xml=1<br>
/api/user/login.php<br>
/api/user/login.php?xml=1<br><br>

<b>Output :</b><br>
{"Result":{"Login":"Success"}}<br>
{"Result":{"Login":"wrongUsernameOrPass"}}<br>
{"Result":{"Login":"dbError"}}<br>
{"Result":{"Username":"No session started"}}
{"Result":{"Username":"teste"}}<br>
</body>
</html>
<xmp>
<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
	<Login>Success</Login>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
	<Login>wrongUsernameOrPass</Login>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
	<Login>dbError</Login>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
	<Username>No session started</Username>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
	<Username>teste</Username>
</Result>
